<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>canvas匀速直线运动</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<canvas id="canvas">你的浏览器不支持canvas，请跟换其他浏览器试一试</canvas>
<script type="text/javascript" src="1.js"></script>
<div style="width: 100px;height: 100px;position: absolute;top: 0;left: 0;background-color: black" onmousedown="move()"></div>
</body>
</html>